package MethodTest;
/*
写一个方法封装System.out.println();
以下所有的p方法构成了方法重载
 */
public class MethodOverloadTest1 {
    public static void main(String[] args){
        p("你好 世界！");
    }
    public static void p(){
        System.out.println();
    }
    public static void p(byte i){
        System.out.println(i);
    }
    public static void p(short i){
        System.out.println(i);
    }
    public static void p(int i){
        System.out.println(i);
    }
    public static void p(long i){
        System.out.println(i);
    }
    public static void p(float i){
        System.out.println(i);
    }
    public static void p(double i){
        System.out.println(i);
    }
    public static void p(boolean i){
        System.out.println(i);
    }
    public static void p(char a){
        System.out.println(a);
    }
    public static void p(String s){
        System.out.println(s);
    }
}
